Repository navigation
fix(deps): update dev dependencies with security advisories - #74
aryanjasala wants to merge 4 commits into
Conversation
Bumps @wordpress/env to 12.1.0, which moves simple-git to v4, and refreshes package-lock.json within the declared ranges. That clears every critical and high Dependabot alert: simple-git and its argv parser, shell-quote, proxy-addr, compression, follow-redirects, launch-editor, markdown-it and source-map-js, plus the fast-uri, minimatch and postcss-selector-parser ones. wp-env 12's only breaking change is a Node 22.13 floor, which the engines range already meets. Five low and medium alerts stay, held by upstream pins: qs (express in wp-env's Playground CLI), smol-toml, katex and serialize-javascript (@wordpress/scripts 36), and deepmerge, which has no fix yet.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
No open issues 🎉
What changed in this PR
Updates development tooling dependencies to address Dependabot security advisories, primarily by bumping @wordpress/env and refreshing the lockfile within declared ranges.
Changes:
- Bump
@wordpress/envfrom11.16.0to12.1.0to pick up patched transitive dependencies (e.g.,simple-gitv4). - Refresh dependency resolution (per PR description) to clear critical/high advisories within allowed ranges.
| File | Description |
|---|---|
| package.json | Updates @wordpress/env version to pull in security fixes via updated transitive dependencies. |
Review effort: Lite
npm 10, which CI's Node 22 ships, drops the libc fields npm 11 adds to platform-specific optional packages. No resolved versions change.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
1 open issue
Review effort: Lite
Adi-ty
left a comment
There was a problem hiding this comment.
Running nvm use followed by npm ci on this branch produces EBADENGINE warnings for 21 Playground/PHP-WASM dependencies. With --engine-strict, the install fails. @wordpress/env 12.1.0 pulls in @php-wasm/* and @wp-playground/* 3.1.62, which require Node ≥24.18.0 and npm ≥11.16.0. CI shows the same warnings, because it also installs on Node 22.23.4. Pinning back isn't an option. The last Node 22-compatible Playground needs @wordpress/env 11.16, which still uses simple-git 3, so the critical alert this PR fixes would stay open. We can set .nvmrc to 24.22.1 and engines.node to ^24.22.1 || >=26.12.1.
@wordpress/env 12 pulls in @php-wasm/* and @wp-playground/* 3.1.62, which need Node 24.18+ and npm 11.16+, so every install on the pinned Node 22.23.4 printed 21 EBADENGINE warnings (and fails with engine-strict). Going back to @wordpress/env 11.16 isn't an option: it still uses simple-git 3, so the critical alert would stay open. Pin Node 24.22.1 (npm 11.19.1) in .nvmrc, set engines to ^24.22.1 || >=26.12.1, update the docs, and write package-lock.json with npm 11 again. The only EBADENGINE warning left is the project itself on Node older than the floor.
|
@Adi-ty thanks, applied your suggestion in 170d883: |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open issues
The PR description states that@wordpress/env12’s only breaking change is a Node 22.13 floor and… · New The PR description states that@wordpress/env12’s only breaking change is a Node 22.13 floor and… · New@wordpress/envis typically a local development tool (wp-env) rather than a runtime dependency.… Grammar: change '26.12.1+ also meets' to '26.12.1+ also meet' (agreement with the plural subject… · New
Review effort: Lite



What this PR does
Clears plugin-elementary's critical and high Dependabot alerts. Bumps
@wordpress/envto 12.1.0, which movessimple-gitto v4, and refreshespackage-lock.jsonwithin the declared version ranges.All of these are development dependencies (build, lint, the dev server,
wp-env), but they ship to every project made withcomposer create-project, so the fix needs a release to reach anyone: thefix(deps)title opens the 1.0.1 release PR.Closes
N/A
Changes
@wordpress/env11.16.0 to 12.1.0.@wordpress/env12 pulls in@php-wasm/*and@wp-playground/*3.1.62, which need Node 24.18+ and npm 11.16+..nvmrcis now 24.22.1 (npm 11.19.1) andengines.nodeis^24.22.1 || >=26.12.1, with the docs updated. Staying on Node 22 would mean@wordpress/env11.16, which still ships the vulnerablesimple-git3.package-lock.jsonrefreshed withnpm update. The only other direct dependency that moved is@rtcamp/eslint-config1.1.0 to 1.2.0, within its range.Alerts cleared:
simple-gitand@simple-git/argv-parser(critical),shell-quote(critical),proxy-addr(critical),compression,follow-redirects,launch-editor,markdown-it,source-map-js(high), and thefast-uri,minimatch,postcss-selector-parsermedium and low ones.Still open, held by upstream pins:
qs(express inside wp-env's Playground CLI),smol-toml,katexandserialize-javascript(@wordpress/scripts36), anddeepmerge, which has no fix yet. They clear with a@wordpress/scriptsmajor upgrade.How I verified
npm audit: critical 4 to 0, high 10 to 0.npm run lint:js,lint:css,lint:package-jsonandbuild:prodpass.test:jsfinds no tests, as onmain.test:php, which needs Docker and wp-env 12; CI's PHPUnit matrix covers it.Reviewer notes